package com.sawyerqiu.model;

import java.util.Date;

/**
 * @author : SawyerQiu
 * @date : 2024/7/23 9:52
 */
public class OrderExcelDataBuilder {

    private Date date;

    private String buyer;

    private String goods;

    private float weight;

    public static OrderExcelDataBuilder newBuilder() {
        return new OrderExcelDataBuilder();
    }

    public void setDate(Date date) {
        this.date = date;
    }

    public void setBuyer(String buyer) {
        this.buyer = buyer;
    }

    public String getBuyer() {
        return buyer;
    }

    public void setGoods(String goods) {
        this.goods = goods;
    }

    public void setWeight(float weight) {
        this.weight = weight;
    }

    public OrderExcelData build() {
        OrderExcelData orderExcelData = new OrderExcelData();
        orderExcelData.setWeight(weight);
        orderExcelData.setGoods(goods);
        orderExcelData.setDate(date);
        orderExcelData.setBuyer(buyer);

        return orderExcelData;
    }
}
